﻿@model Batman.Cms.Controllers.Inputs.CreateArticleTypeInput;
@{
    ViewBag.JsUrl = "/cms/js/article-index.js";
    ViewBag.Title = "文章列表";
}
<div class="panel panel-default">
    <div class="panel-heading clearfix">
        <div class="pull-left">文章列表</div>
        <div class="pull-right">
            <a href="/cms/article/create">
                <i class="el-icon-plus"></i>
                <span>新建文章</span>
            </a>
        </div>
    </div>
    <div class="panel-body" style="padding:0;">
        <div id="article-index">
            <el-table :data="paged.items" border show-overflow-tooltip>
                <el-table-column type="index" align="center"></el-table-column>
                <el-table-column prop="title" label="文章分类"></el-table-column>
                <el-table-column prop="description" label="文章描述" show-overflow-tooltip width="300px"></el-table-column>
                <el-table-column width="200px">
                    <template slot-scope="scope">
                        <a :href="'/cms/article/update/'+scope.row.id">编辑</a>
                    </template>
                </el-table-column>
            </el-table>
            <common-pagination v-model="page" :total="paged.totalCount" @@change="getArticles"></common-pagination>
        </div>
    </div>
    <div class="panel-footer clearfix">
        <div class="pull-right">
            <a href="/cms/article/create">
                <i class="el-icon-plus"></i>
                <span>新建文章</span>
            </a>
        </div>
    </div>
</div>